package com.yDev.stock_runner;

import android.graphics.Canvas;
import android.graphics.Paint;

public class ydLine {

	ydPoint slope;
	ydPoint point;
	
	public ydLine(){
		slope=new ydPoint();
		point=new ydPoint();
	}
	
	public ydLine(ydPoint s, ydPoint p){
		slope=new ydPoint(s);
		point=new ydPoint(p);
	}
	
	public void drawLine(Canvas c, Paint p){
		c.drawLine(point.x, point.y, point.x+slope.x*1000, point.y+slope.y*1000, p);
	}
	
}
